import tensorflow as tf

model = tf.keras.models.load_model('./model/rubbish_detection.h5', compile=False)

converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_quant_model = converter.convert()
open("./model/rubbish_detection.tflite", "wb").write(tflite_quant_model)

